<ul>
	<?php foreach($images as $v){ ?>
	<li>
		<a href="#" onclick="WJ.Slides.showImage('<?=$v->id?>',this); return false;">
			<strong class="icon"><?=$v->name?></strong>               
			<span><img height="200" src="<?=URL::base('http');?>pub/gallery/av_<?=$v->id?>.jpg" /></span>
			<small onclick="document.location='<?=URL::base('http');?>gallery/delete/<?=$v->id?>'">Delete X</small>
		</a>
	</li>
	<?php } ?>
</ul>   